@page
@{ Layout = "_LayoutHome"; }
@section Styles{
    <style>
        body,html {
            padding: 0;
            margin: 0;
        }
    </style>
}
<div class="rounded-0 shadow p-3 bg-white sticky-top">
    <div class="fw-bolder text-center">
        获得证书
    </div>
</div>
<div class="py-3 px-5">
    <el-form v-on:submit.native.prevent :inline="true" :model="form">
        <el-form-item label="">
            <el-date-picker v-model="form.dateFrom"
                            type="date"
                            value-format="yyyy-MM-ddTHH:mm:ss.000Z"
                            placeholder="获证日期 从">
            </el-date-picker>
        </el-form-item>
        <el-form-item label="">
            <el-date-picker v-model="form.dateTo"
                            type="date"
                            value-format="yyyy-MM-ddTHH:mm:ss.000Z"
                            placeholder="到">
            </el-date-picker>
        </el-form-item>
        <el-form-item label="">
            <el-input prefix-icon="el-icon-search" v-model="form.keyWords" placeholder="关键字"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button icon="el-icon-search" v-on:click="btnSearchClick">查询</el-button>
        </el-form-item>
    </el-form>
</div>
<div class="px-5">
    <div v-if="list && list.length>0">
        <div class="row">
            <div class="col-6 card-hover-bg-title" v-for="(cer,index) in list">
                <el-card class="mb-4 px-3" shadow="never">
                    <div class="row">
                        <a class="col-6 bg-cover" :style="{'background-image':'url('+(cer.cerImg)+')'}" href="javascript:;" v-on:click="btnViewCer(cer)"></a>
                        <div class="col-6">
                            <div class="card-body">
                                <div class="mb-2 card-title">{{ cer.cerName }}【{{ cer.cerNumber }}】</div>
                                <ul class="mb-5 list-inline">
                                    <li class="list-inline-item mb-0">
                                        试卷：{{ cer.paperName }}
                                    </li>
                                    <li class="list-inline-item mb-0">
                                        成绩：{{ cer.paperScore }}
                                    </li>
                                </ul>
                                <div class="row align-items-center g-0">
                                    <div class="col">
                                        {{ cer.awartDate }}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </el-card>
            </div>
        </div>
    </div>
    <div class="pt-10" v-else>
        <el-empty></el-empty>
    </div>
</div>
@section Scripts{
    <script src="/sitefiles/assets/js/home/exam/examPaperCer.js" type="text/javascript"></script>
}